package com.njit.mailm.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Administrator on 2016/5/16.
 */
@RequestMapping("/attachment")
@Controller
public class AttachmentController {
    @ResponseBody
    @RequestMapping(value = "upload",method = RequestMethod.POST)
    public boolean upload(MultipartFile file){
        System.out.println(file.getName());
        return false;
    }
}
